#!/bin/bash
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce

sudo usermod -a -G docker $USER
sudo gpasswd -a go docker
sudo chmod a+rw /var/run/docker.sock
sudo service docker restart
